package com.jt.demo8_anno;

import org.springframework.stereotype.Component;

@Component //key:
public class Pig implements Pet{
    @Override
    public void hello() {
        System.out.println("🐖你的鼻子有两个孔");
    }
}
